package com.zhouchao.fangqidianapp.activity;

import android.support.v7.app.AppCompatActivity;
import android.widget.Toast;

/**
 * 描述：
 * zhougan
 * 2019/1/17
 **/
public abstract class BaseActivity extends AppCompatActivity {
    private static final String TAG = "BaseActivity>>>";

    protected abstract void initView();
    protected abstract void initData();
    protected abstract void bindData();

    @Override
    public void setContentView(int layoutResID) {
        super.setContentView(layoutResID);
        initView();
        initData();
        bindData();
    }

    protected void showToastShort(String msg){
        Toast.makeText(this, msg, Toast.LENGTH_SHORT).show();
    }

    protected void showToastLong(String msg){
        Toast.makeText(this, msg, Toast.LENGTH_LONG).show();
    }

}
